From c1471c6f3a10607a158a518711fffbd2dbf31a6b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 29 Jan 2008 23:30:20 +0000 Subject: [PATCH] xhtml correctness for namespaces containing & --- includes/SpecialSearch.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index e30ad08b06..d28cea37e9 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -392,8 +392,9 @@ class SpecialSearch { if( '' == $name ) { $name = wfMsg( 'blanknamespace' ); } + $encName = htmlspecialchars( $name ); $namespaces .= " \n"; + "ns{$ns}\"{$checked} />{$encName}\n"; } $checked = $this->searchRedirects -- 2.20.1